<!DOCTYPE html>
<html lang="en" class="mdl-js">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="Javascript documents.">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
    <meta name="theme-color" content="#3f51b5">
    <meta name="msapplication-navbutton-color" content="#3f51b5">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="google" content="notranslate">
    <title>Source: Alive.js</title>
    <link rel="icon" type="image/png" href="assets/img_docs.png">
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
</head>

<body>
    <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-color--grey-100">
        <header class="mdl-layout__header">
            <div class="mdl-layout__header-row">
                <span class="mdl-layout-title">Alive.js</span>
                <div class="mdl-layout-spacer"></div>
                <div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable mdl-textfield--floating-label mdl-textfield--align-right">
                    <label class="mdl-button mdl-js-button mdl-button--icon" for="search-bar" id="search-icon">
                        <i class="material-icons">search</i>
                    </label>
                    <ul class="mdl-menu mdl-menu--bottom-left mdl-js-menu mdl-js-ripple-effect" for="search-icon" id="search-list" style="width: 225px">
                        <li class="mdl-menu__item">Enter your text to search</li>
                        <li class="mdl-menu__item"></li>
                        <li class="mdl-menu__item"></li>
                        <li class="mdl-menu__item"></li>
                        <li class="mdl-menu__item"></li>
                    </ul>
                    <div class="mdl-textfield__expandable-holder">
                        <input class="mdl-textfield__input" type="text" id="search-bar" onkeydown="setTimeout(search, 50);">
                    </div>
                </div>
            </div>
        </header>
        <div class="mdl-layout__drawer">
            <span class="mdl-layout-title">Classes</span><nav class="mdl-navigation"><a class="mdl-navigation__link"style="text-decoration:none" href="Alive.html">Alive</a><a class="mdl-navigation__link"style="text-decoration:none" href="Apple.html">Apple</a><a class="mdl-navigation__link"style="text-decoration:none" href="Energy.html">Energy</a><a class="mdl-navigation__link"style="text-decoration:none" href="Environment.html">Environment</a><a class="mdl-navigation__link"style="text-decoration:none" href="Tree.html">Tree</a></nav><hr><span class="mdl-layout-title">Events</span><nav class="mdl-navigation"><a class="mdl-navigation__link"style="text-decoration:none" href="Apple.html#event:beEaten">beEaten</a><a class="mdl-navigation__link"style="text-decoration:none" href="Environment.html#event:beforeDestroy">beforeDestroy</a></nav><hr><span class="mdl-layout-title"><a style="text-decoration:none" href="global.html">Global</a></span>
        </div>
        <main class="mdl-layout__content">
            <a name="top"></a>
            



    
    <section>
        <article>
            <pre class="prettyprint source linenums"><code>/**
 * Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.
 * @class 
 */
class Alive {
    constructor(){
        /**
         * amount of energy
         * @property {Energy} the 
         */
        this.energy = null;
    }
    /**
     * @param {Environment} environment the environment when this Alive thing is surviving
     * @return {Energy} the energy wasted in this surviving instance
     * @method 
     */
	survive() {
        return null
	}
}
</code></pre>
        </article>
    </section>


            <footer class="mdl-mini-footer">
                <div class="mdl-mini-footer__left-section">
                    <div class="mdl-logo">Copyright 2016-2017&nbsp;<a class="mdl-color-text--grey-100" href="https://github.com/Astro36">Astro</a>. All rights reserved.</div>
                </div>
                <div class="mdl-mini-footer__right-section">
                    <ul class="mdl-mini-footer__link-list">
                        <li><a href="index.html">Home</a></li>
                        <li><a href="#top">Back to Top</a></li>
                    </ul>
                </div>
            </footer>
        </main>
    </div>
    <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
    <script type="text/javascript">
        var classList = JSON.parse('{"Alive":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Alive.html>Alive</a></li>","Apple":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Apple.html>Apple</a></li>","Energy":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Energy.html>Energy</a></li>","Environment":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Environment.html>Environment</a></li>","Tree":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Tree.html>Tree</a></li>","beEaten":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Apple.html#event:beEaten>beEaten</a></li>","beforeDestroy":"<li class=mdl-menu__item><a class=mdl-menu__item style=text-decoration:none href=Environment.html#event:beforeDestroy>beforeDestroy</a></li>"}'),
            searchBar = document.getElementById("search-bar"),
            searchList = document.getElementById("search-list");
        function search() {
            var text = searchBar.value.trim().toLowerCase(),
                showedList = [];
            searchList.innerHTML = "";
            if (text.length > 0) {
                for (var i in classList) {
                    var searchedText = classList[i];
                    if (showedList.length <= 5) {
                        if (i.toLowerCase().search(text) >= 0) {
                            showedList.push(searchedText);
                        }
                    } else {
                        break;
                    }
                }
            }
            for (var k = 0; k < 5; k++) {
                if (typeof showedList[k] === "string") {
                    searchList.innerHTML += showedList[k];
                } else {
                    if (k === 0) {
                        searchList.innerHTML += "<li class=mdl-menu__item>Enter your text to search</li>";
                    } else {
                        searchList.innerHTML += "<li class=mdl-menu__item></li>";
                    }
                }
            }
        }
    </script>
</body>

</html>